package com.bjpowernode.money.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.bjpowernode.money.mapper.FinanceAccountMapper;
import com.bjpowernode.money.model.FinanceAccount;
import com.bjpowernode.money.service.FinanceAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author ZHAOZHENYU
 * @since 2022/10/20
 * 账户业务接口实现类
 */
@Service(interfaceClass = FinanceAccountService.class, version = "1.0.0", timeout = 20000)
@Component
public class FinanceAccountServiceImpl implements FinanceAccountService {

    @Autowired
    private FinanceAccountMapper financeAccountMapper;

    @Override
    public FinanceAccount queryFinanceByUserId(Integer userId) {
        return financeAccountMapper.selectFinanceByUserId(userId);
    }

}
